Skip to content

feat(images): Glance image resource and data sources - #4

Merged
PF9-pushkar merged 2 commits into
mainfrom
feat/images
Jul 12, 2026
Merged

feat(images): Glance image resource and data sources#4
PF9-pushkar merged 2 commits into
mainfrom
feat/images

Conversation

@PF9-pushkar

Copy link
Copy Markdown
Collaborator

Phase 1 — images (Glance v2)

Second feature family. Acceptance-tested green against the CE 2026.4 lab.

Stacked on feat/identity-resources (#3) — review that first; GitHub will retarget this to main once #3 merges.

Resource

  • pcd_images_image — provide data via local_file_path (uploaded from the Terraform host) or image_source_url (Glance web-download import). Status waiter to active, optional md5 checksum verification, and unprotect-before-delete so protected = true images can still be torn down.

Data sources

  • pcd_images_image — single image by image_id or filters (name/owner/tag/visibility), with most_recent tiebreak.
  • pcd_images_image_ids — matching image IDs.

Test evidence

TF_ACC=1 make testacc for ./internal/services/images/ — upload → active, update (name/min_disk/protected), import, both data sources, protected teardown. Passing.

Notes

  • properties is read-only (computed) in this release — settable custom properties fight Glance's system properties; deferred to avoid perpetual diffs (tracked in DECISIONS.md).
  • Next family: networking (Neutron).

…sources

Glance v2. Acceptance-tested against the CE lab (upload/update/import + lookups).
- pcd_images_image: local-file upload and web-download import, status waiter,
  optional md5 checksum verification, unprotect-before-delete for protected images.
- pcd_images_image: single-image lookup by id or filters (name/owner/tag/visibility,
  most_recent tiebreak).
- pcd_images_image_ids: return matching image IDs.
- clients: ImageV2Client (Glance) added to the shared config.
Base automatically changed from feat/identity-resources to main July 12, 2026 01:07
@PF9-pushkar
PF9-pushkar merged commit db675f7 into main Jul 12, 2026
2 checks passed
@PF9-pushkar
PF9-pushkar deleted the feat/images branch July 12, 2026 01:07
PF9-pushkar added a commit that referenced this pull request Jul 14, 2026
feat(images): Glance image resource and data sources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant